Xdialog Tree Controls

Description

Syntax for creating Tree controls in an Xdialog.

Name
Description
Drop Down Tree Control Syntax

The formatting string %S=BLR% is used to specify that a tree control should be displayed with the familiar boxes and lines.

Dynamically Expanding a Tree Control Using Function Calls

This dialog shows how the entries in a tree control can by expanded dynamically by specifying function calls in the tree data. This example tree control uses the D directive to define the "|" character as the tree separator. You can define any separator that you want. The X directive indicates that the tree contains dynamically expanded nodes. Each entry in the list initially is of the form: ParentNode |! Function . The text after the "!" is the event handler. The event handler is the code that will execute when that part of the tree is expanded. The event handler is a function call that returns the expanded version of the tree.

Tree Control D Directive

The D directive specifies the separator between data elements in each line of the input string.

Tree Control I Directive

Specifies image used in a tree control.

Tree Control S Directive

The formatting string %S=BLR% is used to specify that a tree control should be displayed with the familiar boxes and lines.

Tree Control Syntax

The formatting string %S=BLR% is used to specify that a tree control should be displayed with the familiar boxes and lines. To set the default choice for the tree control, set the value of Node before running UI_DLG_BOX(). In the following example, setting node to "b.1.A" would cause the tree to open so that "b.1.A" was visible and highlighted.

Tree Control X Directive

The X directive specifies that the nodes of the tree control are populated by functions that return CR-LF delimited lists. The format of an entry in the list that defines entries is: ParentNode Separator ! FunctionCall. The Separator is defined by the Tree Control D Directive.